#!/usr/bin/python
print "Content-Type: text/html\n"

import cgi
import cgitb
cgitb.enable()
import os

template = "<html><head><title>%s</title></head><body>%s</body></html>"
title = "Mein Titel"
content = "<h2>Hallo international</h2>"

dic = {"de":"hallo welt", "en":"hello World"}
mylan = "de"
lan = os.environ["HTTP_ACCEPT_LANGUAGE"]

if lan[:2] == "en":
   mylan = "en"

content += "<p>" + dic[mylan] + "</p>"

print template % (title, content)
